//
//  DiscoverTableViewController.swift
//  WeiBoItem
//
//  Created by jss on 16/4/16.
//  Copyright © 2016年 jss. All rights reserved.
//

import UIKit

class DiscoverTableViewController: JSSVisionTableController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        
        if Login == false{
            vissionView.setVissionInfo("登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过", imageName: "visitordiscover_image_message")
            
            return
        }
        
        //调用SeachView的类方法
        let searchview = SeachView.seachView()
        
        searchview.frame.size.width = UIScreen.mainScreen().bounds.width
        
        //把自定义的searchview 赋给navigationItem.titleView
        navigationItem.titleView = searchview
    }
    
}
